package net.csdn.business.common.oauth2.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.domain.SuperEntity;


/**
 * 授权码对象 oauth_code
 * 
 * @author zhangyl
 * @date 2022-11-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("oauth_code")
public class OauthCode extends SuperEntity<OauthCode>
{
    private static final long serialVersionUID = 1L;

    /** 配置id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 分布式id */
    private String objectId;

    /** 授权码 */
    private String code;

    /** 序列化后的授权信息 */
    private byte[] authentication;

}
